<template>
  <div id="test">
    <div class="box">
      <el-container>
        <el-header style="height: 48px;">
          <ul class="home_logo">
            <li><img src="../image/Logo.png" alt=""></li>
          </ul>
          <ul class="home_right">
            <li><img src="../image/Search.png" alt=""></li>
            <li><img class="xinxi" @click="getxcxinxi" src="../image/icon/QuestionCircle.png" alt=""></li>

            <li><img class="message" @click="getmessage" src="../image/icon.png" alt=""></li>
            <li><img src="../image/xiaotouxiang.png" alt=""><span class="bjyrsnow">北京伊尔滑雪场</span></li>
          </ul>
        </el-header>
        <el-container>
          <el-aside width="208px" height="852px">
            <el-col :span="12"
              
            >

              <el-menu default-active="2" router class="el-menu-vertical-demo">
                <el-menu-item index="workbench">
                  <i class="el-icon-monitor"></i>
                  <span slot="title">工作台</span>
                </el-menu-item>
                <el-menu-item index="/shoplist">
                  <i class="el-icon-edit-outline"></i>
                  <span slot="title">商品管理</span>
                </el-menu-item>
                <el-menu-item index="/order">
                  <i class="el-icon-notebook-1"></i>
                  <span slot="title">订单查看</span>
                </el-menu-item>
                <el-submenu index="1">
                  <template slot="title">
                    <i class="el-icon-pie-chart"></i>
                    <span>数据分析</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="/database">数据分析</el-menu-item>
                    <el-menu-item index="/dataanalyst">店铺数据</el-menu-item>
                    <el-menu-item index="/shopanalyst">商品数据</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                
                <set class="set_btn" @click.native="getsystem"></set>
          
                
                
                
              </el-menu>
             
             
            </el-col>
           

           
          </el-aside>
          <el-main>
            <div class="home_meta">
              <span  class="el-icon-monitor">

              </span>&nbsp;&nbsp;&nbsp;
              {{$route.meta.title}}
            </div>
           
            <transition name="fade">
              <router-view />
          </transition>

          </el-main>
        </el-container>
      </el-container>
    </div>
  </div>
</template>
<script>
 
  import set from "../components/Set.vue"
  export default {

    components:{set},
    data(){
      return{
        msg:""
      }
    },
    methods:{
      getmessage(){
        // this.$router.path("/message")
        this.$router.push('/message')
        console.log(111111);
      },
      getsystem(){
        console.log(111);
         this.$router.push('/system')
      },
      getxcxinxi(){
        this.$router.push('/snowmsg')
      }
    },
    mounted(){
    
    }
  }
</script>
<style scoped>
.bjyrsnow{
  padding-left:5px; 
}
  .xinxi{
    cursor: pointer;
    margin-top: 9px;
  }
.set_btn{
  position: absolute;
  bottom: 0;
  cursor: pointer;
  background-color: #FAFAFA;
}
  .message{
    cursor: pointer;
  }
 div  /deep/ .el-menu-item.is-active {
    color: #409EFF;
    background-color: #E6F7FF;
}
  .fade-enter-active, .fade-leave-avtive {
    transition: opacity 1.5s
}
.fade-enter, .fade-leave-to {
    opacity: 0
}
  .home_meta{
    position: absolute;
    top: 12px;
    left: 24px;
  }
  .home_meta>span{
    font-weight: 700;
    font-size: 20px;
  }
  .el-main {
    display: block;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    overflow: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0px;
    position: relative;
  }

  .home_span {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .home_right {
    display: inline-block;
    float: right;
    margin-left: 5px;
    line-height: 48px;
    margin: auto;
  }

  .home_right>li {
    display: inline-block;
    line-height: 48px;
    padding: 0 5px 15px 5px;
  }

  .home_right>li>img {
    vertical-align: middle;
  }

  .home_logo>li {
    vertical-align: middle;
  }

  .home_logo>li {
    display: inline-block;
    float: left;
  }

  .home_logo {
    display: inline-block;
  }

  html {
    height: 100%;
    width: 100%;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
  }

  #test,
  .box {
    height: 100%;
  }

  .el-container {
    height: 100%;
  }

  .el-header,
  .el-footer {
    background-color: #001529;
    color: #fff;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;

    line-height: 200px;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
  }

  body>.el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }

  .el-menu {
    /* border-right: solid 1px #e6e6e6; */
    list-style: none;
    position: relative;
    margin: 0;
    padding-left: 0;
    height: 100%;
    background-color: #FFF;
  }

  .el-col-12 {
    width: 100%;
    height: 100%;
  }
</style>